<template>
  <van-button :disabled="disabled" @click="submit">{{value}}</van-button>
</template>
<script>
import { Button } from "vant";
export default {
  name: "my-button",
  props: ["value", "disabled"],
  components: {
    [Button.name]: Button
  },
  methods: {
      submit(){
          this.$emit('submit')
      }
  }
};
</script>
<style lang="less">
</style>

